package criticalsection;
public class LoggerTest implements Runnable{


	public static void main(String[] args) {
		int nHilos = 10;
		Thread[] hilos = new Thread[nHilos];
		for (Thread thread : hilos) {
			thread = new Thread(new LoggerTest());
			thread.start();
		}

	}

	@Override
	public void run() {
		FileLogger logger = FileLogger.getFileLogger();
		int n = 10;
		for (int i = 0; i < n; i++) {

			logger.log("A Message to Log");
		}
	}

}
